<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	>
<f:view>
<h:head>
	<ui:include src="../include_styles.xhtml" />
	<title>Proyectos Comunitarios</title>
</h:head>
<h:body>
	<!-- /header -->
	<ui:include src="../header.xhtml" />
	<!-- /header -->
	<ui:include src="../menu_director.xhtml" />
	<h:form>	 
	<div id="content" class="box">
		<div align="center">			
			<br/>
			<div style="width: 320px;" align="center">
				<h:messages showDetail="true" showSummary="true" />
				
				<h2>Edicion de Persona </h2>
				
			</div>			
			<h:panelGrid columns="2" >
	
				<h:outputText value="Nombre"/>
				<h:inputText id="nombre" value="#{editPersonaBean.persona.nombre}" class="input" />
				
				<h:outputText value="Apellido"/>
				<h:inputText id="apellido" value="#{editPersonaBean.persona.apellido}" class="input" />
				
				<h:outputText value="DNI"/>
				<h:inputText id="dni" value="#{editPersonaBean.persona.dni}" class="input" />
				
				
			</h:panelGrid>
		  	<br/>
		  	<br/>
		  	<br/>
		  	<h:commandButton id="edit" type="submit" action="#{editPersonaBean.save}" value="Guardar" class="button"/>					
			
			<input id="cancelar" type="button" onclick="javascript:history.back(1)" value="Cancelar" class="button"/>
				
		</div>
		</div>
	</h:form>	
	
	

	<!-- Footer -->
	<ui:include src="../footer.xhtml" />
	<!-- /footer -->
</h:body>	
	
</f:view>
</html>
